package Tree;

public class Test {

	public static void main(String[] args) {
		BinaryTree tree = new BinaryTree();
		tree.add(6);
		tree.add(10);
		tree.add(3);
		tree.add(5);
		tree.add(4);
		tree.add(5);
		tree.add(1);
		tree.add(8);
		tree.add(8);
		tree.add(12);
		tree.printHeight();
		tree.printWidth();
		tree.delete(3);
		tree.printHeight();
		tree.printWidth();
		System.out.println(tree.isNode(12));
		System.out.println(tree.isNode(96));
		BinaryTree tree2 = new BinaryTree();
		tree2.add(new Object());
		Object obj=new Object();
		tree2.add(obj);
		tree2.add(new Object());
		tree2.add(new Object());
		tree2.printHeight();
		tree2.printWidth();
		tree2.delete(obj);
		tree2.printHeight();
		tree2.printWidth();
	}
}
